<template>
  <!-- 主播电台--下部分公用各种电台组件--默认部分 -->
  <div class="dj-module">
      <!-- 标题 -->
      <div class="title">
          <div class="left">
              <a href="javascript:;">音乐推荐</a>
              <span class="spec"> · </span>
              <span>电台</span>
          </div>
          <div class="right">更多 ></div>
      </div>
      <!-- 内容 -->
      <div class="content">
          <!-- 每一项 -->
          <div class="item" v-for="i,index in 4" :key="index">
              <div class="img">
                  <img src="./img/1.jpg">
              </div>
              <div class="info">
                  <p>魔法电台-音乐时间</p>
                  <p>哈利波特魔法点歌台</p>
              </div>
          </div>
      </div>
  </div>
</template>

<script>
export default {
    name:'djModule'
}
</script>

<style lang="scss" sccoped>
    .dj-module{
        width: 100%;
        font-size: 12px;
        color: #333;
        .title{
            width: 100%;
            height: 40px;
            margin-top: 40px;
            line-height: 42px;
            border-bottom: 2px solid #c20c0c;
            .left{
                float: left;
                font-size: 24px;
                a{
                    color: #333;
                    &:hover{
                        text-decoration: underline;
                    }
                }
                .spec{
                    font-weight: bold;
                }
            }
            .right{
                float: right;
                color: #666;
                cursor: pointer;
                &:hover{
                    text-decoration: underline;
                }
            }
        }
        .content{
            width: 100%;
            height: 322px;
            display: grid;
            grid-template-columns: repeat(2,1fr);
            grid-template-rows: repeat(2,1fr);
            align-items: center;
            .item{
                width: 465px;
                height: 120px;
                padding: 20px 0;
                display: flex;
                border-bottom: 1px solid #e7e7e7;
                .img{
                    width: 120px;
                    height: 120px;
                    cursor: pointer;
                    img{
                        width: 100%;
                        height: 100%;
                    }
                }
                .info{
                    margin-left: 20px;
                    p:nth-child(1){
                        font-size: 18px;
                        color: #000;
                        font-weight: bold;
                        margin-top: 20px;
                        cursor: pointer;
                        &:hover{
                            text-decoration: underline;
                        }
                    }
                    p:nth-child(2){
                        font-size: 12px;
                        color: #999;
                        margin-top: 30px;
                    }
                }
            }
        }
    }
</style>